package com.bird.tomcatweb;

import javax.servlet.*;
import java.io.IOException;


/**
 * 日志记录过滤器
 */
public class LoggingFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("init.....");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("doFilter....");
    }

    @Override
    public void destroy() {
        System.out.println("destroy....");
    }
}
